package com.miaosmart.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import java.time.LocalDateTime;

@Data
@TableName("users")
public class User {
    @TableId(value = "id", type = IdType.ASSIGN_UUID)
    private String userId;
    
    private String username;
    
    private String email;
    
    private String password;

    private String nickname;
    
    private String role;
    
    private String avatar;
    
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createdAt;
    
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updatedAt;
    
    private LocalDateTime lastLoginAt;
    
    @TableLogic
    private Integer deleted;
} 